<template>
  <div class="message">
    <van-nav-bar
      title="消息"
    >
      <van-icon name="add-o" slot="right" color='white'/>
    </van-nav-bar>
   
    <div>
      <van-search placeholder="搜索聊天记录" v-model="value" />
    </div>
    <div class="showInfo">
      <div class="infoList" v-for="(item,index) in messageInfo" :key="index">
        <div>
          <img src="" alt="">
          <div>
            <div class="title">{{item.title}}</div>
            <div>{{item.text}}</div>
          </div>
        </div>
        <div>{{item.time}}</div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        value: '',
        messageInfo:[{
          url:'',
          title:'系统消息',
          text:'欢迎使用本软件！',
          time:'19.30'
        }]
      }
    },
  }
</script>

<style scoped lang='less'>
  .message{
    background-color: #e6e6e6;
    min-height: 100vh;
    .van-nav-bar{
      background-color: #5cadff;
      .van-nav-bar__title{
         color: white;
      }
    }
    .showInfo{
      background-color: white;
      border-top: 1px solid #e1e1e1;
      .infoList{
        box-sizing: border-box;
        padding: 10px 30px;
        border-bottom: 1px solid #e1e1e1;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        img{
          margin-right: 5px;
        }
        .title{
          font-weight: bold;
          font-size: 16px;
        }
      }
    }
  }
</style>